package com.wobito.pojo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lambyang
 * @since 2024-09-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_operate_log")
@AllArgsConstructor
@NoArgsConstructor
public class OperateLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 操作人
     */
    private String user;

    /**
     * 操作事情
     */
    private String thing;

    /**
     * 操作时间
     */
    private Date time;

    public OperateLog(String user, String thing, Date time) {
        this.user = user;
        this.thing = thing;
        this.time = time;
    }
}
